<?php

class AnnouncementPageLink extends Extension {
	function getAnnouncementPage(){
        $page = AnnouncementPage::get()->find('ClassName', 'AnnouncementPage');
        if($page) return $page;
    }
    
    function getAnnouncementLink() {
        $page = $this->getAnnouncementPage();
        if($page) return $page->Link();
    }
}
